<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
    <%@ page import="performReservation.SMMDBBean"%>
<%@ page import="java.sql.*"%>
    <%!
    	String email = null;
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

</head>
<%
	email = request.getParameter("email");
	if(!email.equals("")){
		%>
			<jsp:useBean id="cus"  scope="page" class="performReservation.Customer"></jsp:useBean>
		<%
		cus.setEmail(email);
		SMMDBBean pProcess = SMMDBBean.getInstance();
		boolean b = pProcess.deleteCustomer(cus);
		if(b){
			out.println("Customer"+email+"has been deleted!");
		}else{
			out.println("SQL error");
		}
	}
%>
<body>
</body>
</html>